package com.atguigu.mybatisplus.mapper;

import com.atguigu.mybatisplus.entity.NickUser;
import com.atguigu.mybatisplus.entity.User;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MI
 * @ClassName UserNickMapper.java
 * @createTime 2021年08月24日 17:01:00
 */
@Mapper
public interface UserNickMapper extends BaseMapper<User> {
    NickUser selectNick();

    //https://baomidou.com/guide/wrapper.html#kotlin%E6%8C%81%E4%B9%85%E5%8C%96%E5%AF%B9%E8%B1%A1%E5%AE%9A%E4%B9%89%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5
    List<NickUser> getAll(@Param(Constants.WRAPPER) Wrapper wrapper);

}
